package day4;

import java.util.Arrays;
import java.util.List;

/**
 * @author oldliu
 * @since 1.0
 */
public class ArraysTest {
    public static void main(String[] args) {
        int []ar={1,2,4,5,78,9,10,12,15};
        //30
        int[] a3 = Arrays.copyOf(ar, 4);
        System.out.println(Arrays.toString(a3));
        Arrays.fill(a3,100);
        System.out.println(Arrays.toString(a3));
        List<Integer> li = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
        System.out.println(li);
    }
}
